package 泛型.参数协变;

class Base {
}

class Derived extends Base {
}

interface OrdinaryGetter {
	Base get();
}

interface DerivedGetter extends OrdinaryGetter {
	@Override
	Derived get();
}

public class CovariantReturnTypes {
	void test(DerivedGetter d) {
		Derived derived = d.get();
	}

}
